<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./common/fontawesome/css/all.css">
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        .banner {
           height: 700px;
           /* 背景图片 */ 
           background-image: url('./img/banner.jpg');
           background-size: 100%;
           background-position: center 90%;
           /* 设置图片不重复 */
           background-repeat: no-repeat;
           padding-top: 200px;
        }

        .loginForm {
            width: 600px;
            height: 420px;
            background-color: white;
            /* 控制块元素水平居中 */
            margin: 0 auto;
            padding-bottom: 15px;
        }

        .topSection {
            height: 100px;
        }

        .topSection h3 {
            padding-top: 25px;
            text-align: center;
        }

        .leftDiv {
            width: 50%;
            float: left;
            /* background-color: red; */
        }

        .leftDiv div {
            width: 130px;
            margin: 0 auto;
            height: 300px;
            /* background-color: blue; */
            padding: 20px 0px;
        }

        .leftDiv div p:nth-of-type(1){
            text-align: center;
            margin-bottom: 30px;
        }

        .leftDiv div p:nth-of-type(2){
            text-align: center;
            font-size: 8px;
            margin-bottom: 15px;
        }

        .leftDiv div p:nth-of-type(3){
            height: 130px;
            background-image: url('./img/code.jpg');
            background-size: 100%;
            background-position: center center;
            /* 设置图片不重复 */
            background-repeat: no-repeat;
            margin-bottom: 10px;
        }

        .leftDiv div p:nth-of-type(4){
            text-align: center;
        }

        .btn {
            display: inline-block;
            width: 90px;
            height: 30px;
            text-align: center;
            line-height: 30px;
            border: 1px solid orange;
            /* 设置边框角的弧度 */
            border-radius: 3px;
            color: orange;
            font-size: 12px;
        }

        .rightDiv {
            width: 40%;
            height: 300px;
            float: left;
            border-left: 1px dashed #ccc;
            padding: 20px 0px 0px 15px;
        }

        .rightDiv p:nth-of-type(1) {
            margin-bottom: 30px;
        }

        #username,#password{
          padding: 5px 10px 5px 25px;  
        }

        /* important 最重要的 */
        .item {
            height: 38px !important;
        }

        /* 父元素设置相对定位 */
        .item:nth-of-type(1) {
            position: relative;
            margin-bottom: 35px;
        }

        .item:nth-of-type(2) {
            position: relative;
            margin-bottom: 15px;
        }

        /* 给子元素设置绝对定位 */
        .item i {
            position: absolute;
            left: 10px;
            top: 7px;
        }

        .support {
            margin-bottom: 15px !important;
        }
        
        .support a{
            text-decoration: none;
            color: black;
        }

        .support span{
            font-size: 6px;
        }

        .support input{
            height: 10px;
            width: 10px;
            display: inline-block;
        }

        .forget {
            margin-left: 25px;
        }

        .btn-login {
            width: 200px;
            background-color: orange;
            height: 35px;
            border-radius: 25px;
            border: 1px solid orange;
            color: white;
            font-size: 18px;
            line-height: 35px;
        }
    </style>
</head>
<body>
    <div class="banner">
        <div class="loginForm">
            <div class="topSection">
                <h3>欢迎登录</h3>
            </div>
            <div class="bottomSection">
                <div class="leftDiv">
                    <div>
                        <p>扫一扫登录</p>
                        <p>请输入微信app扫码登录</p>
                        <p></p>
                        <p>
                            <span class="btn">刷新二维码</span>
                        </p>
                    </div>
                </div>
                <div class="rightDiv">
                    <p>帐户密码登录</p>
                    <form action="#" method="post">
                        <!-- name属性代表当前表单数据要发送到后台 -->
                        <!-- placeholder 设置提示文字 -->
                        <div class="item">
                            <input type="text" name="username" id="username" placeholder="手机号/邮箱/用户名" />
                            <i class="fas fa-user"></i>&nbsp;
                        </div>
                        <div class="item">
                            <input type="text" name="password" id="password" placeholder="请输入密码" />
                            <i class="fas fa-lock"></i>&nbsp;
                        </div>
                        <div class="support">
                            <input type="checkbox" id="rememberme"><span>记住密码</span>
                            <input type="checkbox" id="autologin"><span>自动登录</span>
                            <a class="forget" href="#"><span>忘记密码？</span></a>
                        </div>
                        <div>
                            <input class="btn-login" type="submit" value="登录">
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</body>
</html>